package dao

import (
	"time"
)

// 这是 LiPointsGoods 的全局公开dao对象
var LiPointsGoodsDao = liPointsGoodsDao{}

// 这是 li_points_goods表 的实体类
type LiPointsGoods struct {
	Id                      int       `json:"id" form:"id" v:"id"`                                                                         // ID
	CreateBy                string    `json:"create_by" form:"create_by" v:"create_by"`                                                    // 创建者
	CreateTime              time.Time `json:"create_time" form:"create_time" v:"create_time"`                                              // 创建时间
	DeleteFlag              bool      `json:"delete_flag" form:"delete_flag" v:"delete_flag" gm:"delete_flag"`                             // 删除标志 true/false 删除/未删除
	UpdateBy                string    `json:"update_by" form:"update_by" v:"update_by"`                                                    // 更新者
	UpdateTime              time.Time `json:"update_time" form:"update_time" v:"update_time"`                                              // 更新时间
	EndTime                 time.Time `json:"end_time" form:"end_time" v:"end_time"`                                                       // 活动结束时间
	PromotionName           string    `json:"promotion_name" form:"promotion_name" v:"promotion_name"`                                     // 活动名称
	PromotionStatus         string    `json:"promotion_status" form:"promotion_status" v:"promotion_status"`                               // 活动状态
	StoreId                 string    `json:"store_id" form:"store_id" v:"store_id"`                                                       // 店铺ID
	StoreName               string    `json:"store_name" form:"store_name" v:"store_name"`                                                 // 店铺名称
	StartTime               time.Time `json:"start_time" form:"start_time" v:"start_time"`                                                 // 活动开始时间
	ActiveStock             string    `json:"active_stock" form:"active_stock" v:"active_stock"`                                           // 活动库存数量
	Points                  string    `json:"points" form:"points" v:"points"`                                                             // 兑换积分
	PointsGoodsCategoryId   string    `json:"points_goods_category_id" form:"points_goods_category_id" v:"points_goods_category_id"`       // 积分商品分类编号
	PointsGoodsCategoryName string    `json:"points_goods_category_name" form:"points_goods_category_name" v:"points_goods_category_name"` // 分类名称
	SettlementPrice         float64   `json:"settlement_price" form:"settlement_price" v:"settlement_price"`                               // 结算价格
	SkuId                   string    `json:"sku_id" form:"sku_id" v:"sku_id"`                                                             // 商品编号

}

// 注意:这是 LiPointsGoods 的私有dao对象
type liPointsGoodsDao struct {
	Insert func(arg LiPointsGoods) int           //插入一条记录
	Update func(arg LiPointsGoods) int           //更新一条记录
	Delete func(arg LiPointsGoods) int           //删除一条记录
	Select func(arg LiPointsGoods) LiPointsGoods //获取一条记录
}
